package pjh.com.test;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.NotBlank;

import com.ph.shopping.common.core.base.BaseEntity;

public class Person extends BaseEntity {
	private String name;
	@NotBlank(message="零售价不可以为空")
	@Digits(fraction = 0, integer =10,message="零售价")
	private Long m;
	
	 @Min(value = 0, message = "物流费用最少为0")
	 private Long freight;

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Long getM() {
		return m;
	}
	public void setM(Long m) {
		this.m = m;
	}
	public Long getFreight() {
		return freight;
	}
	public void setFreight(Long freight) {
		this.freight = freight;
	}
	
}
